
{include file="public:header"/}
<style type="text/css">
	.wrap{padding-bottom: 20px;}
	.aui-list .aui-list-item{background-color: #FFF;padding: 0 0.75rem;}
    .aui-media-list .aui-list-item{background-color: #FFF;padding: 0 0.75rem;}
    .aui-btn-info{color: #FFF !important;background-color: #ff6e00 !important;}
    .aui-list .aui-list-item:after{height: 1px !important;}
</style>
<form class="ajax-form" loading-msg="正在登录，请稍候..." action="" method="post" style="margin-top: 20px;">
	<ul class="aui-list aui-form-list">
            <li class="aui-list-item">
                <div class="aui-list-item-inner">
                    <div class="aui-list-item-label-icon">
                        <i class="aui-iconfont icon-user-name"></i>
                    </div>
                    <div class="aui-list-item-input">
                        <input name="mobile" type="tel" class="aui-input" placeholder="请输入手机号" >
                    </div>
                </div>
            </li>
            <li class="aui-list-item">
                <div class="aui-list-item-inner">
                    <div class="aui-list-item-label-icon">
                        <i class="aui-iconfont icon-password"></i>
                    </div>
                    <div class="aui-list-item-input">
                        <input name="password" type="password" class="aui-input" placeholder="请输入密码">
                    </div>
                </div>
            </li>
        </ul>
   	<div class="submit-box">
		<button class="aui-btn aui-btn-info login-btn" type="submit" style="">登录</button>
	</div>
</form>

<div class="aui-content aui-text-center three-login" style="">
	<p class="aui-padded-10 aui-text-center hot-server-title login"><span>使用微信注册/登录</span></p>
	<div class="aui-btn weixin-btn icon-weixin jump" url="{:url('Login/weixin', array('back_url' => $back_url))}"></div>
</div>
<script type="text/javascript">
	$(document).ready(function(){
		$('form.ajax-form').on('submit', function () {
			$('input[type="password"]').each(function () {
				if(!$(this).hasClass('not-md5') && $(this).val()){
					var password     = $(this).val();
					var password_md5 = $.md5(password);
					$(this).val(password_md5);
				}
			});
		});
	});
</script>
{include file="public:footer"/}